package com.tenglong.iservice.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class ServiceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ServiceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUseIdIsNull() {
            addCriterion("use_id is null");
            return (Criteria) this;
        }

        public Criteria andUseIdIsNotNull() {
            addCriterion("use_id is not null");
            return (Criteria) this;
        }

        public Criteria andUseIdEqualTo(String value) {
            addCriterion("use_id =", value, "useId");
            return (Criteria) this;
        }

        public Criteria andUseIdNotEqualTo(String value) {
            addCriterion("use_id <>", value, "useId");
            return (Criteria) this;
        }

        public Criteria andUseIdGreaterThan(String value) {
            addCriterion("use_id >", value, "useId");
            return (Criteria) this;
        }

        public Criteria andUseIdGreaterThanOrEqualTo(String value) {
            addCriterion("use_id >=", value, "useId");
            return (Criteria) this;
        }

        public Criteria andUseIdLessThan(String value) {
            addCriterion("use_id <", value, "useId");
            return (Criteria) this;
        }

        public Criteria andUseIdLessThanOrEqualTo(String value) {
            addCriterion("use_id <=", value, "useId");
            return (Criteria) this;
        }

        public Criteria andUseIdLike(String value) {
            addCriterion("use_id like", value, "useId");
            return (Criteria) this;
        }

        public Criteria andUseIdNotLike(String value) {
            addCriterion("use_id not like", value, "useId");
            return (Criteria) this;
        }

        public Criteria andUseIdIn(List<String> values) {
            addCriterion("use_id in", values, "useId");
            return (Criteria) this;
        }

        public Criteria andUseIdNotIn(List<String> values) {
            addCriterion("use_id not in", values, "useId");
            return (Criteria) this;
        }

        public Criteria andUseIdBetween(String value1, String value2) {
            addCriterion("use_id between", value1, value2, "useId");
            return (Criteria) this;
        }

        public Criteria andUseIdNotBetween(String value1, String value2) {
            addCriterion("use_id not between", value1, value2, "useId");
            return (Criteria) this;
        }

        public Criteria andServiceSeIsNull() {
            addCriterion("service_se is null");
            return (Criteria) this;
        }

        public Criteria andServiceSeIsNotNull() {
            addCriterion("service_se is not null");
            return (Criteria) this;
        }

        public Criteria andServiceSeEqualTo(String value) {
            addCriterion("service_se =", value, "serviceSe");
            return (Criteria) this;
        }

        public Criteria andServiceSeNotEqualTo(String value) {
            addCriterion("service_se <>", value, "serviceSe");
            return (Criteria) this;
        }

        public Criteria andServiceSeGreaterThan(String value) {
            addCriterion("service_se >", value, "serviceSe");
            return (Criteria) this;
        }

        public Criteria andServiceSeGreaterThanOrEqualTo(String value) {
            addCriterion("service_se >=", value, "serviceSe");
            return (Criteria) this;
        }

        public Criteria andServiceSeLessThan(String value) {
            addCriterion("service_se <", value, "serviceSe");
            return (Criteria) this;
        }

        public Criteria andServiceSeLessThanOrEqualTo(String value) {
            addCriterion("service_se <=", value, "serviceSe");
            return (Criteria) this;
        }

        public Criteria andServiceSeLike(String value) {
            addCriterion("service_se like", value, "serviceSe");
            return (Criteria) this;
        }

        public Criteria andServiceSeNotLike(String value) {
            addCriterion("service_se not like", value, "serviceSe");
            return (Criteria) this;
        }

        public Criteria andServiceSeIn(List<String> values) {
            addCriterion("service_se in", values, "serviceSe");
            return (Criteria) this;
        }

        public Criteria andServiceSeNotIn(List<String> values) {
            addCriterion("service_se not in", values, "serviceSe");
            return (Criteria) this;
        }

        public Criteria andServiceSeBetween(String value1, String value2) {
            addCriterion("service_se between", value1, value2, "serviceSe");
            return (Criteria) this;
        }

        public Criteria andServiceSeNotBetween(String value1, String value2) {
            addCriterion("service_se not between", value1, value2, "serviceSe");
            return (Criteria) this;
        }

        public Criteria andServiceSupplierIsNull() {
            addCriterion("service_supplier is null");
            return (Criteria) this;
        }

        public Criteria andServiceSupplierIsNotNull() {
            addCriterion("service_supplier is not null");
            return (Criteria) this;
        }

        public Criteria andServiceSupplierEqualTo(String value) {
            addCriterion("service_supplier =", value, "serviceSupplier");
            return (Criteria) this;
        }

        public Criteria andServiceSupplierNotEqualTo(String value) {
            addCriterion("service_supplier <>", value, "serviceSupplier");
            return (Criteria) this;
        }

        public Criteria andServiceSupplierGreaterThan(String value) {
            addCriterion("service_supplier >", value, "serviceSupplier");
            return (Criteria) this;
        }

        public Criteria andServiceSupplierGreaterThanOrEqualTo(String value) {
            addCriterion("service_supplier >=", value, "serviceSupplier");
            return (Criteria) this;
        }

        public Criteria andServiceSupplierLessThan(String value) {
            addCriterion("service_supplier <", value, "serviceSupplier");
            return (Criteria) this;
        }

        public Criteria andServiceSupplierLessThanOrEqualTo(String value) {
            addCriterion("service_supplier <=", value, "serviceSupplier");
            return (Criteria) this;
        }

        public Criteria andServiceSupplierLike(String value) {
            addCriterion("service_supplier like", value, "serviceSupplier");
            return (Criteria) this;
        }

        public Criteria andServiceSupplierNotLike(String value) {
            addCriterion("service_supplier not like", value, "serviceSupplier");
            return (Criteria) this;
        }

        public Criteria andServiceSupplierIn(List<String> values) {
            addCriterion("service_supplier in", values, "serviceSupplier");
            return (Criteria) this;
        }

        public Criteria andServiceSupplierNotIn(List<String> values) {
            addCriterion("service_supplier not in", values, "serviceSupplier");
            return (Criteria) this;
        }

        public Criteria andServiceSupplierBetween(String value1, String value2) {
            addCriterion("service_supplier between", value1, value2, "serviceSupplier");
            return (Criteria) this;
        }

        public Criteria andServiceSupplierNotBetween(String value1, String value2) {
            addCriterion("service_supplier not between", value1, value2, "serviceSupplier");
            return (Criteria) this;
        }

        public Criteria andServicePhoneIsNull() {
            addCriterion("service_phone is null");
            return (Criteria) this;
        }

        public Criteria andServicePhoneIsNotNull() {
            addCriterion("service_phone is not null");
            return (Criteria) this;
        }

        public Criteria andServicePhoneEqualTo(String value) {
            addCriterion("service_phone =", value, "servicePhone");
            return (Criteria) this;
        }

        public Criteria andServicePhoneNotEqualTo(String value) {
            addCriterion("service_phone <>", value, "servicePhone");
            return (Criteria) this;
        }

        public Criteria andServicePhoneGreaterThan(String value) {
            addCriterion("service_phone >", value, "servicePhone");
            return (Criteria) this;
        }

        public Criteria andServicePhoneGreaterThanOrEqualTo(String value) {
            addCriterion("service_phone >=", value, "servicePhone");
            return (Criteria) this;
        }

        public Criteria andServicePhoneLessThan(String value) {
            addCriterion("service_phone <", value, "servicePhone");
            return (Criteria) this;
        }

        public Criteria andServicePhoneLessThanOrEqualTo(String value) {
            addCriterion("service_phone <=", value, "servicePhone");
            return (Criteria) this;
        }

        public Criteria andServicePhoneLike(String value) {
            addCriterion("service_phone like", value, "servicePhone");
            return (Criteria) this;
        }

        public Criteria andServicePhoneNotLike(String value) {
            addCriterion("service_phone not like", value, "servicePhone");
            return (Criteria) this;
        }

        public Criteria andServicePhoneIn(List<String> values) {
            addCriterion("service_phone in", values, "servicePhone");
            return (Criteria) this;
        }

        public Criteria andServicePhoneNotIn(List<String> values) {
            addCriterion("service_phone not in", values, "servicePhone");
            return (Criteria) this;
        }

        public Criteria andServicePhoneBetween(String value1, String value2) {
            addCriterion("service_phone between", value1, value2, "servicePhone");
            return (Criteria) this;
        }

        public Criteria andServicePhoneNotBetween(String value1, String value2) {
            addCriterion("service_phone not between", value1, value2, "servicePhone");
            return (Criteria) this;
        }

        public Criteria andServiceNumIsNull() {
            addCriterion("service_num is null");
            return (Criteria) this;
        }

        public Criteria andServiceNumIsNotNull() {
            addCriterion("service_num is not null");
            return (Criteria) this;
        }

        public Criteria andServiceNumEqualTo(Long value) {
            addCriterion("service_num =", value, "serviceNum");
            return (Criteria) this;
        }

        public Criteria andServiceNumNotEqualTo(Long value) {
            addCriterion("service_num <>", value, "serviceNum");
            return (Criteria) this;
        }

        public Criteria andServiceNumGreaterThan(Long value) {
            addCriterion("service_num >", value, "serviceNum");
            return (Criteria) this;
        }

        public Criteria andServiceNumGreaterThanOrEqualTo(Long value) {
            addCriterion("service_num >=", value, "serviceNum");
            return (Criteria) this;
        }

        public Criteria andServiceNumLessThan(Long value) {
            addCriterion("service_num <", value, "serviceNum");
            return (Criteria) this;
        }

        public Criteria andServiceNumLessThanOrEqualTo(Long value) {
            addCriterion("service_num <=", value, "serviceNum");
            return (Criteria) this;
        }

        public Criteria andServiceNumIn(List<Long> values) {
            addCriterion("service_num in", values, "serviceNum");
            return (Criteria) this;
        }

        public Criteria andServiceNumNotIn(List<Long> values) {
            addCriterion("service_num not in", values, "serviceNum");
            return (Criteria) this;
        }

        public Criteria andServiceNumBetween(Long value1, Long value2) {
            addCriterion("service_num between", value1, value2, "serviceNum");
            return (Criteria) this;
        }

        public Criteria andServiceNumNotBetween(Long value1, Long value2) {
            addCriterion("service_num not between", value1, value2, "serviceNum");
            return (Criteria) this;
        }

        public Criteria andServicePriceIsNull() {
            addCriterion("service_price is null");
            return (Criteria) this;
        }

        public Criteria andServicePriceIsNotNull() {
            addCriterion("service_price is not null");
            return (Criteria) this;
        }

        public Criteria andServicePriceEqualTo(String value) {
            addCriterion("service_price =", value, "servicePrice");
            return (Criteria) this;
        }

        public Criteria andServicePriceNotEqualTo(String value) {
            addCriterion("service_price <>", value, "servicePrice");
            return (Criteria) this;
        }

        public Criteria andServicePriceGreaterThan(String value) {
            addCriterion("service_price >", value, "servicePrice");
            return (Criteria) this;
        }

        public Criteria andServicePriceGreaterThanOrEqualTo(String value) {
            addCriterion("service_price >=", value, "servicePrice");
            return (Criteria) this;
        }

        public Criteria andServicePriceLessThan(String value) {
            addCriterion("service_price <", value, "servicePrice");
            return (Criteria) this;
        }

        public Criteria andServicePriceLessThanOrEqualTo(String value) {
            addCriterion("service_price <=", value, "servicePrice");
            return (Criteria) this;
        }

        public Criteria andServicePriceLike(String value) {
            addCriterion("service_price like", value, "servicePrice");
            return (Criteria) this;
        }

        public Criteria andServicePriceNotLike(String value) {
            addCriterion("service_price not like", value, "servicePrice");
            return (Criteria) this;
        }

        public Criteria andServicePriceIn(List<String> values) {
            addCriterion("service_price in", values, "servicePrice");
            return (Criteria) this;
        }

        public Criteria andServicePriceNotIn(List<String> values) {
            addCriterion("service_price not in", values, "servicePrice");
            return (Criteria) this;
        }

        public Criteria andServicePriceBetween(String value1, String value2) {
            addCriterion("service_price between", value1, value2, "servicePrice");
            return (Criteria) this;
        }

        public Criteria andServicePriceNotBetween(String value1, String value2) {
            addCriterion("service_price not between", value1, value2, "servicePrice");
            return (Criteria) this;
        }

        public Criteria andServiceCountIsNull() {
            addCriterion("service_count is null");
            return (Criteria) this;
        }

        public Criteria andServiceCountIsNotNull() {
            addCriterion("service_count is not null");
            return (Criteria) this;
        }

        public Criteria andServiceCountEqualTo(String value) {
            addCriterion("service_count =", value, "serviceCount");
            return (Criteria) this;
        }

        public Criteria andServiceCountNotEqualTo(String value) {
            addCriterion("service_count <>", value, "serviceCount");
            return (Criteria) this;
        }

        public Criteria andServiceCountGreaterThan(String value) {
            addCriterion("service_count >", value, "serviceCount");
            return (Criteria) this;
        }

        public Criteria andServiceCountGreaterThanOrEqualTo(String value) {
            addCriterion("service_count >=", value, "serviceCount");
            return (Criteria) this;
        }

        public Criteria andServiceCountLessThan(String value) {
            addCriterion("service_count <", value, "serviceCount");
            return (Criteria) this;
        }

        public Criteria andServiceCountLessThanOrEqualTo(String value) {
            addCriterion("service_count <=", value, "serviceCount");
            return (Criteria) this;
        }

        public Criteria andServiceCountLike(String value) {
            addCriterion("service_count like", value, "serviceCount");
            return (Criteria) this;
        }

        public Criteria andServiceCountNotLike(String value) {
            addCriterion("service_count not like", value, "serviceCount");
            return (Criteria) this;
        }

        public Criteria andServiceCountIn(List<String> values) {
            addCriterion("service_count in", values, "serviceCount");
            return (Criteria) this;
        }

        public Criteria andServiceCountNotIn(List<String> values) {
            addCriterion("service_count not in", values, "serviceCount");
            return (Criteria) this;
        }

        public Criteria andServiceCountBetween(String value1, String value2) {
            addCriterion("service_count between", value1, value2, "serviceCount");
            return (Criteria) this;
        }

        public Criteria andServiceCountNotBetween(String value1, String value2) {
            addCriterion("service_count not between", value1, value2, "serviceCount");
            return (Criteria) this;
        }

        public Criteria andIncomeActualIsNull() {
            addCriterion("income_actual is null");
            return (Criteria) this;
        }

        public Criteria andIncomeActualIsNotNull() {
            addCriterion("income_actual is not null");
            return (Criteria) this;
        }

        public Criteria andIncomeActualEqualTo(String value) {
            addCriterion("income_actual =", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualNotEqualTo(String value) {
            addCriterion("income_actual <>", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualGreaterThan(String value) {
            addCriterion("income_actual >", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualGreaterThanOrEqualTo(String value) {
            addCriterion("income_actual >=", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualLessThan(String value) {
            addCriterion("income_actual <", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualLessThanOrEqualTo(String value) {
            addCriterion("income_actual <=", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualLike(String value) {
            addCriterion("income_actual like", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualNotLike(String value) {
            addCriterion("income_actual not like", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualIn(List<String> values) {
            addCriterion("income_actual in", values, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualNotIn(List<String> values) {
            addCriterion("income_actual not in", values, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualBetween(String value1, String value2) {
            addCriterion("income_actual between", value1, value2, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualNotBetween(String value1, String value2) {
            addCriterion("income_actual not between", value1, value2, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeWageIsNull() {
            addCriterion("income_wage is null");
            return (Criteria) this;
        }

        public Criteria andIncomeWageIsNotNull() {
            addCriterion("income_wage is not null");
            return (Criteria) this;
        }

        public Criteria andIncomeWageEqualTo(String value) {
            addCriterion("income_wage =", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageNotEqualTo(String value) {
            addCriterion("income_wage <>", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageGreaterThan(String value) {
            addCriterion("income_wage >", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageGreaterThanOrEqualTo(String value) {
            addCriterion("income_wage >=", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageLessThan(String value) {
            addCriterion("income_wage <", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageLessThanOrEqualTo(String value) {
            addCriterion("income_wage <=", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageLike(String value) {
            addCriterion("income_wage like", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageNotLike(String value) {
            addCriterion("income_wage not like", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageIn(List<String> values) {
            addCriterion("income_wage in", values, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageNotIn(List<String> values) {
            addCriterion("income_wage not in", values, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageBetween(String value1, String value2) {
            addCriterion("income_wage between", value1, value2, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageNotBetween(String value1, String value2) {
            addCriterion("income_wage not between", value1, value2, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeCostIsNull() {
            addCriterion("income_cost is null");
            return (Criteria) this;
        }

        public Criteria andIncomeCostIsNotNull() {
            addCriterion("income_cost is not null");
            return (Criteria) this;
        }

        public Criteria andIncomeCostEqualTo(String value) {
            addCriterion("income_cost =", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostNotEqualTo(String value) {
            addCriterion("income_cost <>", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostGreaterThan(String value) {
            addCriterion("income_cost >", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostGreaterThanOrEqualTo(String value) {
            addCriterion("income_cost >=", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostLessThan(String value) {
            addCriterion("income_cost <", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostLessThanOrEqualTo(String value) {
            addCriterion("income_cost <=", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostLike(String value) {
            addCriterion("income_cost like", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostNotLike(String value) {
            addCriterion("income_cost not like", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostIn(List<String> values) {
            addCriterion("income_cost in", values, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostNotIn(List<String> values) {
            addCriterion("income_cost not in", values, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostBetween(String value1, String value2) {
            addCriterion("income_cost between", value1, value2, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostNotBetween(String value1, String value2) {
            addCriterion("income_cost not between", value1, value2, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsIsNull() {
            addCriterion("income_profits is null");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsIsNotNull() {
            addCriterion("income_profits is not null");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsEqualTo(String value) {
            addCriterion("income_profits =", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsNotEqualTo(String value) {
            addCriterion("income_profits <>", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsGreaterThan(String value) {
            addCriterion("income_profits >", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsGreaterThanOrEqualTo(String value) {
            addCriterion("income_profits >=", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsLessThan(String value) {
            addCriterion("income_profits <", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsLessThanOrEqualTo(String value) {
            addCriterion("income_profits <=", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsLike(String value) {
            addCriterion("income_profits like", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsNotLike(String value) {
            addCriterion("income_profits not like", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsIn(List<String> values) {
            addCriterion("income_profits in", values, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsNotIn(List<String> values) {
            addCriterion("income_profits not in", values, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsBetween(String value1, String value2) {
            addCriterion("income_profits between", value1, value2, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsNotBetween(String value1, String value2) {
            addCriterion("income_profits not between", value1, value2, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andServiceCreatedIsNull() {
            addCriterion("service_created is null");
            return (Criteria) this;
        }

        public Criteria andServiceCreatedIsNotNull() {
            addCriterion("service_created is not null");
            return (Criteria) this;
        }

        public Criteria andServiceCreatedEqualTo(Date value) {
            addCriterionForJDBCDate("service_created =", value, "serviceCreated");
            return (Criteria) this;
        }

        public Criteria andServiceCreatedNotEqualTo(Date value) {
            addCriterionForJDBCDate("service_created <>", value, "serviceCreated");
            return (Criteria) this;
        }

        public Criteria andServiceCreatedGreaterThan(Date value) {
            addCriterionForJDBCDate("service_created >", value, "serviceCreated");
            return (Criteria) this;
        }

        public Criteria andServiceCreatedGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("service_created >=", value, "serviceCreated");
            return (Criteria) this;
        }

        public Criteria andServiceCreatedLessThan(Date value) {
            addCriterionForJDBCDate("service_created <", value, "serviceCreated");
            return (Criteria) this;
        }

        public Criteria andServiceCreatedLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("service_created <=", value, "serviceCreated");
            return (Criteria) this;
        }

        public Criteria andServiceCreatedIn(List<Date> values) {
            addCriterionForJDBCDate("service_created in", values, "serviceCreated");
            return (Criteria) this;
        }

        public Criteria andServiceCreatedNotIn(List<Date> values) {
            addCriterionForJDBCDate("service_created not in", values, "serviceCreated");
            return (Criteria) this;
        }

        public Criteria andServiceCreatedBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("service_created between", value1, value2, "serviceCreated");
            return (Criteria) this;
        }

        public Criteria andServiceCreatedNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("service_created not between", value1, value2, "serviceCreated");
            return (Criteria) this;
        }

        public Criteria andServiceUpdatedIsNull() {
            addCriterion("service_updated is null");
            return (Criteria) this;
        }

        public Criteria andServiceUpdatedIsNotNull() {
            addCriterion("service_updated is not null");
            return (Criteria) this;
        }

        public Criteria andServiceUpdatedEqualTo(Date value) {
            addCriterionForJDBCDate("service_updated =", value, "serviceUpdated");
            return (Criteria) this;
        }

        public Criteria andServiceUpdatedNotEqualTo(Date value) {
            addCriterionForJDBCDate("service_updated <>", value, "serviceUpdated");
            return (Criteria) this;
        }

        public Criteria andServiceUpdatedGreaterThan(Date value) {
            addCriterionForJDBCDate("service_updated >", value, "serviceUpdated");
            return (Criteria) this;
        }

        public Criteria andServiceUpdatedGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("service_updated >=", value, "serviceUpdated");
            return (Criteria) this;
        }

        public Criteria andServiceUpdatedLessThan(Date value) {
            addCriterionForJDBCDate("service_updated <", value, "serviceUpdated");
            return (Criteria) this;
        }

        public Criteria andServiceUpdatedLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("service_updated <=", value, "serviceUpdated");
            return (Criteria) this;
        }

        public Criteria andServiceUpdatedIn(List<Date> values) {
            addCriterionForJDBCDate("service_updated in", values, "serviceUpdated");
            return (Criteria) this;
        }

        public Criteria andServiceUpdatedNotIn(List<Date> values) {
            addCriterionForJDBCDate("service_updated not in", values, "serviceUpdated");
            return (Criteria) this;
        }

        public Criteria andServiceUpdatedBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("service_updated between", value1, value2, "serviceUpdated");
            return (Criteria) this;
        }

        public Criteria andServiceUpdatedNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("service_updated not between", value1, value2, "serviceUpdated");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}